package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "CHANNEL")
public class Channel extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 渠道对应的组织标识
	 */
	@Id
	@Column(name = "ORG_ID")
	private Long orgId;

	/**
	 * 销售点三级类,LOVB
	 */
	@Column(name = "SALES_THIRD_TYPE")
	private String salesThirdType;

	/**
	 * 渠道对应组织的关联参与人标识,参与人唯一标识
	 */
	@Column(name = "PARTY_ID")
	private Long partyId;

	/**
	 * 创建人
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 修改时间
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * CHN-0005渠道编码：13位销售点编码，6位地区码、1位销售点类型码、6位序列码
	 */
	@Column(name = "CHANNEL_NBR")
	private String channelNbr;

	/**
	 * 渠道状态时间
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 渠道名称
	 */
	@Column(name = "CHANNEL_NAME")
	private String channelName;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Long tenantId;

	/**
	 * 销售点一级类，LOVB
	 */
	@Column(name = "SALES_FIRST_TYPE")
	private String salesFirstType;

	/**
	 * 公用管理区域标识,记录区域唯一标识
	 */
	@Column(name = "COMMON_REGION_ID")
	private Long commonRegionId;

	/**
	 * 分片键1，固定值-1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 修改人
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 销售点二级类,LOVB
	 */
	@Column(name = "SALES_SECOND_TYPE")
	private String salesSecondType;

	/**
	 * 分片键2，固定值-1。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 渠道状态
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 渠道类型，LOVB，区分是销售点还是店中商
	 */
	@Column(name = "CHANNEL_CLASS")
	private String channelClass;

	/**
	 * 渠道描述
	 */
	@Column(name = "CHANNEL_DESC")
	private String channelDesc;

	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;


	public void setOrgId(Long orgId){
		this.orgId = orgId;
	}

	public Long getOrgId(){
		return this.orgId;
	}

	public void setSalesThirdType(String salesThirdType){
		this.salesThirdType = salesThirdType;
	}

	public String getSalesThirdType(){
		return this.salesThirdType;
	}

	public void setPartyId(Long partyId){
		this.partyId = partyId;
	}

	public Long getPartyId(){
		return this.partyId;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setChannelNbr(String channelNbr){
		this.channelNbr = channelNbr;
	}

	public String getChannelNbr(){
		return this.channelNbr;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setChannelName(String channelName){
		this.channelName = channelName;
	}

	public String getChannelName(){
		return this.channelName;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setSalesFirstType(String salesFirstType){
		this.salesFirstType = salesFirstType;
	}

	public String getSalesFirstType(){
		return this.salesFirstType;
	}

	public void setCommonRegionId(Long commonRegionId){
		this.commonRegionId = commonRegionId;
	}

	public Long getCommonRegionId(){
		return this.commonRegionId;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setSalesSecondType(String salesSecondType){
		this.salesSecondType = salesSecondType;
	}

	public String getSalesSecondType(){
		return this.salesSecondType;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setChannelClass(String channelClass){
		this.channelClass = channelClass;
	}

	public String getChannelClass(){
		return this.channelClass;
	}

	public void setChannelDesc(String channelDesc){
		this.channelDesc = channelDesc;
	}

	public String getChannelDesc(){
		return this.channelDesc;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	@Override
	public Long getId() {
		return orgId;
	}
	
	@Override
	public void setId(Long id) {
		this.orgId = id;
	}
	
	public Channel() {
		super();
    }
}
